import { ensureUser } from '../../middleware/validators'
import * as question from './controller'

export const baseUrl = '/questions'

export default [
  {
    method: 'POST',
    route: '/',
    handlers: [
      // ensureUser,
      question.createQuestion
    ]
  },
   {
    method: 'GET',
    route: '/',
    handlers: [
      // ensureUser,
      question.getQuestions
    ]
  }
]
